package com.charging.service;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
import cn.binarywang.wx.miniapp.config.WxMaConfig;
import com.charging.bean.Site;
import com.charging.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.charging.bean.layuiBean.ResultPage;
import com.charging.bean.layuiBean.VoPage;
import com.charging.config.result.ApiResult;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 个人信息 服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-25
 */
public interface UserService extends IService<User> {

    /**
     * 功能配置
     * @return
     */
    WxMaConfig config();

    /**
     * 功能插件服务
     * @return
     */
    WxMaService getWxService();

    /**
     * 登陆
     * @param code
     * @return
     */
     WxMaJscode2SessionResult login(String code);

    ApiResult login(WxMaJscode2SessionResult result, HttpSession session);



    /**
     * @param voPage
     * @return 后台查询
     */
    ResultPage<User> selectMyPage(VoPage voPage );


}
